<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>确认订单</title>
    <link rel="stylesheet" href="../css/aui.2.0.css">
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/alert.css">
    <link rel="stylesheet" href="../css/confirm-order.css">
</head>
<body style="background-color: #f0f0f0">
<header class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">确认订单</div>
</header>
<nav id="confirm-order-box">
    <!--<div class="order-tab">
        <div class="con-tab-select con-un-pay order-active">待付款</div>
        <div class="con-tab-select con-un-goods">待收货</div>
        <div class="con-tab-select con-un-say">待评价</div>
        <div class="con-tab-select con-go-back">退换货</div>
    </div>-->
    <script type="text/x-handlebars-template" id="confirm-order-template">
        <div class="order-address">
        {{#if (compare isHaveAddress '==' 0)}}
        <div id="set-address">暂无默认收货地址，去设置...</div>
        {{else}}
        {{#mainAddress}}
        <div class="order-address-name" data-addressid="{{id}}">
            <span>{{addressName}}</span>
            <span>{{addressPhone}}</span>
        </div>
        <div class="order-address-detail">{{addressDetail}}</div>
        {{/mainAddress}}
        {{/if}}
        </div>
        <div id="confirm-shop-list">
            {{#each products}}
            <div class="dis-list-box">
                <div class="dis-shop-img">
                    <img src="{{mainImageUrl}}" alt="">
                </div>
                <div class="dis-list-content">
                    <div class="dis-shop-detail">
                        <span class="hongbao">红包 <span>{{getInt productHongbao}}</span>元</span>
                        <span>{{exemption isServenBack}}</span>
                        <span>{{name}}</span>
                    </div>
                    <div class="dis-price">
                        <span>￥{{productPrice}}</span>
                        <span>￥{{productOrginPrice}}</span>
                    </div>
                    <div class="dis-evaluate">
                        <span>{{totalFeedback}}评价</span>
                        <span>好评 <span>{{percentFeedback}}%</span></span>
                    </div>
                    <div class="dis-sale">
                        数量：<span>{{totalCount}}</span>
                    </div>
                </div>
            </div>
            {{/each}}
        </div>
        <div class="con-red-box">
            <div>红包</div>
            <div>{{getInt totalHongbao}}元</div>
        </div>
        <div class="con-user-message">
        <textarea placeholder="选填: 给卖家留言"
                  id="taContent" rows="3"
                  maxlength="45" onchange="this.value=this.value.substring(0, 45)"
                  onkeydown="this.value=this.value.substring(0, 45)"
                  onkeyup="this.value=this.value.substring(0, 45)" ></textarea>
            <div>限45字以内</div>
        </div>
        <div class="con-money-list">
            <div class="con-money-text">
                <div>商品金额</div>
                <div>￥{{totalOriginPrice}}元</div>
            </div>
            <div class="con-money-text">
                <div>红包</div>
                <div>￥{{totalHongbao}}元</div>
            </div>
            <div class="con-money-text">
                <div>运费</div>
                <div>{{totalPostFee}}元</div>
            </div>
        </div>
        <div class="footer-default"></div>
        <footer>
            <div class="con-pay-money-box">
                <div class="con-pay-sales">
                    实付款: <span>{{totalPrice}}元</span>
                </div>
                <div class="con-submit">
                    提交订单
                </div>
            </div>
        </footer>
    </script>
</nav>
<script src="../js/jquery-3.0.0.min.js"></script>
<script src="../js/handlebars-v4.0.10.js"></script>
<script src="../js/config.js"></script>
<script src="../js/function.js"></script>
<script src="../js/alert.js"></script>
<script src="../js/common.js"></script>
<script src="../js/confirm-order.js"></script>


</body>
</html>